@model Adams.Admin.DataTransfer.Membership.CreateMember.PageLoad
@{
    Layout = "~/Views/Membership/_Layout.cshtml";
}
@if (!string.IsNullOrEmpty(ViewBag.Message))
    {
    <div class="notification success png_bg">
        <a href="#" class="close">
            <img src="@Url.Content("/Content/images/cross_grey_small.png")" title="Close this notification"
            alt="close" /></a>
        <div>
            @if (ViewBag.Message == "1")
            {
                <b>Successfully saved Member!</b>
            }
        </div>
    </div>
    }
<div class="clear">
</div>
<!-- End .clear -->
<div class="content-box">
    <!-- Start Content Box -->
    <div class="content-box-header">
        <h3>
            Member Information</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <form action="" method="post">
        <p>
            <label>
                First Name</label>
            <input class="text-input medium-input" type="text" id="FirstName" value="@Model.Member.FirstName" />
            <br />
            <small></small>
        </p>
        <p>
            <label>
                Last Name</label>
            <input class="text-input medium-input" type="text" id="LastName" value="@Model.Member.LastName" />
            <br />
            <small></small>
        </p>
        <p>
            <label>
                Email</label>
            <input class="text-input medium-input" type="text" id="Email" value="@Model.Member.Email" />
            <br />
            <small></small>
        </p>
        <p>
            <label>
                Street</label>
            <input class="text-input medium-input" type="text" id="Street" value="@Model.Member.Street" />
            <br />
            <small></small>
        </p>
        <p>
            <label>
                Street 2</label>
            <input class="text-input medium-input" type="text" id="Street2" value="@Model.Member.Street2" />
            <br />
            <small></small>
        </p>
        <p>
            <label>
                City</label>
            <input class="text-input medium-input" type="text" id="City" value="@Model.Member.City" />
            <br />
            <small></small>
        </p>
        <p>
            <label>
                State</label>
            <select id="State">
        <option value="">Choose State...</option>
        <option value="AL">Alabama</option>
        <option value="AK">Alaska</option>
        <option value="AZ">Arizona</option>
        <option value="AR">Arkansas</option>
        <option value="CA">California</option>
        <option value="CO">Colorado</option>
        <option value="CT">Connecticut</option>
        <option value="DE">Delaware</option>
        <option value="DC">District of Columbia</option>
        <option value="FL">Florida</option>
        <option value="GA">Georgia</option>
        <option value="HI">Hawaii</option>
        <option value="ID">Idaho</option>
        <option value="IL">Illinois</option>
        <option value="IN">Indiana</option>
        <option value="IA">Iowa</option>
        <option value="KS">Kansas</option>
        <option value="KY">Kentucky</option>
        <option value="LA">Louisiana</option>
        <option value="ME">Maine</option>
        <option value="MD">Maryland</option>
        <option value="MA">Massachusetts</option>
        <option value="MI">Michigan</option>
        <option value="MN">Minnesota</option>
        <option value="MS">Mississippi</option>
        <option value="MO">Missouri</option>
        <option value="MT">Montana</option>
        <option value="NE">Nebraska</option>
        <option value="NV">Nevada</option>
        <option value="NH">New Hampshire</option>
        <option value="NJ">New Jersey</option>
        <option value="NM">New Mexico</option>
        <option value="NY">New York</option>
        <option value="NC">North Carolina</option>
        <option value="ND">North Dakota</option>
        <option value="OH">Ohio</option>
        <option value="OK">Oklahoma</option>
        <option value="OR">Oregon</option>
        <option value="PA">Pennsylvania</option>
        <option value="RI">Rhode Island</option>
        <option value="SC">South Carolina</option>
        <option value="SD">South Dakota</option>
        <option value="TN">Tennessee</option>
        <option value="TX">Texas</option>
        <option value="UT">Utah</option>
        <option value="VT">Vermont</option>
        <option value="VA">Virginia</option>
        <option value="WA">Washington</option>
        <option value="WV">West Virginia</option>
        <option value="WI">Wisconsin</option>
        <option value="WY">Wyoming</option>
    </select>
    <input type="hidden" id="statedefault" value="@Model.Member.State" />
            <br />
            <small></small>
        </p>
        <p>
            <label>
                Zip Code</label>
            <input class="text-input medium-input" type="text" id="ZipCode" value="@Model.Member.ZipCode" />
            <br />
            <small></small>
        </p>
        <p>
            <label>
                Phone</label>
            <input class="text-input medium-input" type="text" id="Phone" value="@Model.Member.Phone" />
            <br />
            <small></small>
        </p>
        <p>
            <label>
                Password</label>
            <input class="text-input medium-input" type="password" id="Password" value="" />
            <br />
            @if (@Model.Member.ID > 0)
            {
                <small>leave empty to not change</small>
            }
        </p>
        <p>
            <label>
                Status</label>
            <input type="checkbox" id="IsActive" @(Model.Member.IsActive ? "checked" : "") /> Active
            <input type="checkbox" id="IsLocked" @(Model.Member.IsLocked ? "checked" : "") /> Locked
            <small></small>
        </p>
        <p>
            <input class="button" id="submit" type="button" value="Submit" />
        </p>
        <div class="clear">
        </div>
        <!-- End .clear -->
        <input id="id" type="hidden" value="@Model.Member.ID" />
        </form>
    </div>
    <!-- End .content-box-content -->
</div>
<!-- End .content-box -->
@section Scripts {
    <script type="text/javascript" src="@Url.Content("/Scripts/Membership/createMember.js")"></script>
}
